package cn.zjitc.design.principle.singleresponsibility;

public class Test {
    public static void main(String[] args) {
        /*//v1
        Bird bird = new Bird();
        bird.mainMoveMode("大雁");*/

        //v2
        FlyBird flyBird = new FlyBird();
        flyBird.mainMoveMode("大雁");

        WalkBird walkBird = new WalkBird();
        walkBird.mainMoveMode("鸵鸟");
    }
}
